package com.houtai.bean.dto.resume;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;
import java.util.List;

@ApiModel(value="添加编辑简历所需参数", description="添加简历编辑所需参数")
public class TdResumeInsertDto {

    @NotEmpty(message = "姓名不能为空")
    @Length(max = 20, message = "姓名最多20个字符")
    @ApiModelProperty(value="姓名", name="user_name", example = "张三")
    private String user_name;

    @NotNull(message = "性别不能为空")
    @Min(value = 1, message = "性别只能是男女")
    @Max(value = 2, message = "性别只能是男女")
    @ApiModelProperty(value="性别1男2女", name="sex", example = "1")
    private int sex;

    @NotNull(message = "年龄不能为空")
    @Min(value = 1, message = "年龄最小1")
    @Max(value = 100, message = "年龄最大100")
    @ApiModelProperty(value="年龄", name="age", example = "10")
    private int age;

    @NotEmpty(message = "生日不能为空")
    @Length(max = 10, message = "生日最多10个字符")
    @ApiModelProperty(value="生日 yyyy-MM-dd", name="birthday", example = "2010-01-01")
    private String birthday;

    @NotNull(message = "求职状态id不能为空")
    @ApiModelProperty(value="求职状态id", name="job_status_id", example = "25")
    private int job_status_id ;

    @NotNull(message = "学历id不能为空")
    @ApiModelProperty(value="学历id", name="diploma_id", example = "29")
    private int diploma_id;


    @NotNull(message = "期望职位id不能为空")
    @ApiModelProperty(value="期望职位id", name="jobs_id", example = "32")
    private int jobs_id;


    @NotEmpty(message = "毕业院校不能为空")
    @Length(max = 100, message = "毕业院校最多100个字符")
    @ApiModelProperty(value="毕业院校", name="graduate_school", example = "清华大学")
    private String graduate_school;

    @NotNull(message = "工作经验不能为空")
    @Min(value = 0, message = "工作经验不能为空不能是负数")
    @ApiModelProperty(value="工作经验 年", name="work_ages", example = "9")
    private int work_ages;

    @NotEmpty(message = "请输入正确手机号码")
    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$", message = "请输入正确手机号码")
    @ApiModelProperty(value="手机号码", name="phone_no", example = "17698821444")
    private String phone_no;

    @NotNull(message = "省id不能为空")
    @ApiModelProperty(value="省id", name="province_id", example = "200")
    private int province_id;

    @NotNull(message = "市id不能为空")
    @ApiModelProperty(value="市id", name="city_id", example = "201")
    private int city_id;

    @NotEmpty(message = "照片不能为空")
    @Length(max = 100, message = "照片最多100个字符")
    @ApiModelProperty(value="照片", name="head_img", example = "https://mydataapp.oss-cn-hangzhou.aliyuncs.com/image/activity/20200211082304635.png")
    private String head_img;

    @NotNull(message = "工资区间id不能为空")
    @ApiModelProperty(value="工资区间id", name="wage_id", example = "51")
    private int wage_id;

    @NotNull(message = "工作经历列表不能为空")
    @ApiModelProperty(value="工作经历列表", name="job_experience")
    private List<TdJobExperienceInsertDto> job_experience;

    @NotNull(message = "项目经历列表不能为空")
    @ApiModelProperty(value="项目经历列表", name="job_experience")
    private List<TdProjectExperienceInsert> project_experience;

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public int getJob_status_id() {
        return job_status_id;
    }

    public void setJob_status_id(int job_status_id) {
        this.job_status_id = job_status_id;
    }

    public int getDiploma_id() {
        return diploma_id;
    }

    public void setDiploma_id(int diploma_id) {
        this.diploma_id = diploma_id;
    }

    public int getJobs_id() {
        return jobs_id;
    }

    public void setJobs_id(int jobs_id) {
        this.jobs_id = jobs_id;
    }

    public String getGraduate_school() {
        return graduate_school;
    }

    public void setGraduate_school(String graduate_school) {
        this.graduate_school = graduate_school;
    }

    public int getWork_ages() {
        return work_ages;
    }

    public void setWork_ages(int work_ages) {
        this.work_ages = work_ages;
    }

    public String getPhone_no() {
        return phone_no;
    }

    public void setPhone_no(String phone_no) {
        this.phone_no = phone_no;
    }

    public int getProvince_id() {
        return province_id;
    }

    public void setProvince_id(int province_id) {
        this.province_id = province_id;
    }

    public int getCity_id() {
        return city_id;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    public String getHead_img() {
        return head_img;
    }

    public void setHead_img(String head_img) {
        this.head_img = head_img;
    }

    public int getWage_id() {
        return wage_id;
    }

    public void setWage_id(int wage_id) {
        this.wage_id = wage_id;
    }

    public List<TdJobExperienceInsertDto> getJob_experience() {
        return job_experience;
    }

    public void setJob_experience(List<TdJobExperienceInsertDto> job_experience) {
        this.job_experience = job_experience;
    }

    public List<TdProjectExperienceInsert> getProject_experience() {
        return project_experience;
    }

    public void setProject_experience(List<TdProjectExperienceInsert> project_experience) {
        this.project_experience = project_experience;
    }
}
